package com.hunter.sqlSession;

import com.hunter.pojo.Configuration;

/**
 * @Classname DefaultSqlSessionFactory
 * @Description TODO
 * @Date 2021/7/22 23:17
 * @Created by haojie.liao
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory{

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
